Mxytyu commited on
Commit
67c6663
·
verified ·
1 Parent(s): b70956e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -8,8 +8,9 @@ body {background-color: #e0f7fa;} /* Light blue background */
8
  .button:hover {background-color: #1e88e5 !important;} /* Darker blue on hover */
9
  """
10
 
11
- # Define the assistant prompt to provide context
12
- assistant_prompt = "you are se"
 
13
  # Define a function to interact with the model, taking input and adding context
14
  def assistant_response(user_input):
15
  # Here, you'd modify this to pass the assistant_prompt to your model API
@@ -23,10 +24,10 @@ app = gr.Interface(
23
  outputs="text",
24
  css=blue_theme_css,
25
  title="Helpful Assistant API",
26
- description="Ask me anything, and I'll do my best to help!",
27
  examples=["What's the weather like today?", "Explain Python decorators."],
28
- allow_flagging="never"
29
  )
30
 
31
  # Launch the app and make it API accessible
32
- app.launch(enable_queue=True, api_name="get_help")
 
8
  .button:hover {background-color: #1e88e5 !important;} /* Darker blue on hover */
9
  """
10
 
11
+ # Define the assistant prompt with the name "Se" for the model
12
+ assistant_prompt = "You are a helpful assistant named Se. Answer questions concisely and helpfully, as if you're assisting the user personally."
13
+
14
  # Define a function to interact with the model, taking input and adding context
15
  def assistant_response(user_input):
16
  # Here, you'd modify this to pass the assistant_prompt to your model API
 
24
  outputs="text",
25
  css=blue_theme_css,
26
  title="Helpful Assistant API",
27
+ description="Ask Se anything, and they'll do their best to help!",
28
  examples=["What's the weather like today?", "Explain Python decorators."],
29
+ flagging_mode="never" # Updated parameter
30
  )
31
 
32
  # Launch the app and make it API accessible
33
+ app.launch(api_name="get_help") # Removed enable_queue