MahiH commited on
Commit
93bd965
·
1 Parent(s): 934c34d

public access not working

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # Setup API-only interface (UI will still be generated but ignored)
28
  demo = gr.Interface(fn=chat, inputs="text", outputs="text")
29
- demo.launch() # DO NOT use share=True
 
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)