kavansaun commited on
Commit
76f51dc
·
verified ·
1 Parent(s): 0d7ce48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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),gr.HTML(script,visible=False) # 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.
 
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.