PeterPinetree commited on
Commit
29ec0c1
·
verified ·
1 Parent(s): 63573fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -60,5 +60,13 @@ demo = gr.ChatInterface(
60
  )
61
 
62
  ###updated 2.27.2025 to go public###
 
 
 
 
 
 
 
 
63
  if __name__ == "__main__":
64
  iface.launch(server_name="0.0.0.0", server_port=7860, share=True)
 
60
  )
61
 
62
  ###updated 2.27.2025 to go public###
63
+ # ✅ Define the Gradio interface BEFORE launching
64
+ iface = gr.Interface(
65
+ fn=chatbot_response,
66
+ inputs="text",
67
+ outputs="text",
68
+ title="CYOA Adventure Bot",
69
+ description="Type your choices and shape the adventure!
70
+
71
  if __name__ == "__main__":
72
  iface.launch(server_name="0.0.0.0", server_port=7860, share=True)