Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(),css="footer{display:none !important}
|
|
| 49 |
</script>
|
| 50 |
"""
|
| 51 |
|
| 52 |
-
return gr.TextArea(new_id,visible=False),
|
| 53 |
|
| 54 |
def predict_prompt(inputs, user_id): # This function creates a response for the chatbot to respond with.
|
| 55 |
user_dictionary[user_id].append({"role": "user", "content": inputs}) # This adds the input from the user and saves it to the history before we do anything else.
|
|
|
|
| 49 |
</script>
|
| 50 |
"""
|
| 51 |
|
| 52 |
+
return gr.TextArea(new_id,visible=False),script # Returning the "TextArea" object with what we want. Set visible to True if you want the id to appear when its made.
|
| 53 |
|
| 54 |
def predict_prompt(inputs, user_id): # This function creates a response for the chatbot to respond with.
|
| 55 |
user_dictionary[user_id].append({"role": "user", "content": inputs}) # This adds the input from the user and saves it to the history before we do anything else.
|