JohnAlexander23 commited on
Commit
9260a76
1 Parent(s): 048747d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -4
app.py CHANGED
@@ -21,7 +21,15 @@ def fetch_response(user_input):
21
  # yield (each.choices[0].delta.content)
22
  # #end=""
23
 
24
- iface = st.Interface(fn=fetch_response, inputs="text", outputs="text", title="Fastest AI Chatbot By Klizos", description="Ask a question and get a response.")
25
- iface.launch(
26
- share=True
27
- )
 
 
 
 
 
 
 
 
 
21
  # yield (each.choices[0].delta.content)
22
  # #end=""
23
 
24
+
25
+ def fetch_response(text_input):
26
+ # Implement your function to fetch response here
27
+ return "Response: " + text_input # For demonstration purposes
28
+
29
+ st.title("Fastest AI Chatbot By DL Titan")
30
+ st.write("Ask a question and get a response.")
31
+
32
+ text_input = st.text_input("Enter your question here:")
33
+ if st.button("Submit"):
34
+ response = fetch_response(text_input)
35
+ st.write(response)