Spaces:
Sleeping
Sleeping
public access not working
Browse files
app.py
CHANGED
|
@@ -24,6 +24,6 @@ def chat(prompt):
|
|
| 24 |
decoded = tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
| 25 |
return decoded.split("Assistant:")[-1].strip()
|
| 26 |
|
| 27 |
-
#
|
| 28 |
demo = gr.Interface(fn=chat, inputs="text", outputs="text")
|
| 29 |
-
demo.launch(
|
|
|
|
| 24 |
decoded = tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
| 25 |
return decoded.split("Assistant:")[-1].strip()
|
| 26 |
|
| 27 |
+
# API-only Gradio interface
|
| 28 |
demo = gr.Interface(fn=chat, inputs="text", outputs="text")
|
| 29 |
+
demo.launch(enable_queue=True)
|