Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,15 @@ def fetch_response(user_input):
|
|
| 21 |
# yield (each.choices[0].delta.content)
|
| 22 |
# #end=""
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 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)
|