Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from
|
| 3 |
|
| 4 |
-
|
| 5 |
|
| 6 |
-
|
| 7 |
-
respose = client.text_generation(message, max_new_tokens=512)
|
| 8 |
-
return response
|
| 9 |
-
|
| 10 |
-
demo = gr.ChatInterFace(fn=respond)
|
| 11 |
|
| 12 |
-
|
| 13 |
-
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from OS
|
| 3 |
|
| 4 |
+
token = os.getenv("SecretToken")
|
| 5 |
|
| 6 |
+
demo = gr.load("lodels/ShadowEternity/CTFsolver", token=token)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
demo.launch()
|
|
|