Spaces:
Runtime error
Runtime error
chg
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# app.py for Hugging Face Space
|
| 2 |
# Make sure to add 'gradio', 'transformers', and 'torch' (or 'tensorflow'/'flax')
|
| 3 |
# to your requirements.txt file in the Hugging Face Space repository.
|
| 4 |
-
|
| 5 |
import gradio as gr
|
| 6 |
import torch # Or tensorflow/flax depending on backend
|
| 7 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
| 1 |
# app.py for Hugging Face Space
|
| 2 |
# Make sure to add 'gradio', 'transformers', and 'torch' (or 'tensorflow'/'flax')
|
| 3 |
# to your requirements.txt file in the Hugging Face Space repository.
|
| 4 |
+
# gated model
|
| 5 |
import gradio as gr
|
| 6 |
import torch # Or tensorflow/flax depending on backend
|
| 7 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|