Spaces:
Sleeping
Sleeping
Update app.py (#1)
Browse files- Update app.py (92c7a3341adf7fc2e0268aed139d40f36fcd949b)
app.py
CHANGED
|
@@ -1,8 +1,4 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
|
| 3 |
-
# Install the transformers library
|
| 4 |
-
!pip install transformers
|
| 5 |
-
|
| 6 |
from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer
|
| 7 |
|
| 8 |
# Load the model and tokenizer
|
|
@@ -30,3 +26,4 @@ iface = gr.Interface(
|
|
| 30 |
|
| 31 |
# Launch the interface
|
| 32 |
iface.launch()
|
|
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer
|
| 3 |
|
| 4 |
# Load the model and tokenizer
|
|
|
|
| 26 |
|
| 27 |
# Launch the interface
|
| 28 |
iface.launch()
|
| 29 |
+
|