Spaces:
Runtime error
Runtime error
fix: add a secret api token
Browse files
app.py
CHANGED
@@ -1,3 +1,6 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
|
4 |
+
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
5 |
+
|
6 |
+
gr.Interface.load("models/DataAnalyticsLab/PersianGPT-FT-Grover", api_key=HF_TOKEN).launch()
|