prithivMLmods commited on
Commit
34fff7a
1 Parent(s): 1e2ed35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -10,6 +10,7 @@ footer {
10
  '''
11
  client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
12
 
 
13
  mood_prompts = {
14
  "Fun": "Respond in a light-hearted, playful manner.",
15
  "Serious": "Respond in a thoughtful, serious tone.",
@@ -102,6 +103,9 @@ def generate(
102
 
103
  def gradio_interface():
104
  with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
 
 
 
105
  # Row for mood selection
106
  with gr.Row():
107
  mood = gr.Radio(choices=list(mood_prompts.keys()), value="Professional", label="Select Mood")
 
10
  '''
11
  client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
12
 
13
+
14
  mood_prompts = {
15
  "Fun": "Respond in a light-hearted, playful manner.",
16
  "Serious": "Respond in a thoughtful, serious tone.",
 
103
 
104
  def gradio_interface():
105
  with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
106
+ # Initialize state for history
107
+ history = gr.State([])
108
+
109
  # Row for mood selection
110
  with gr.Row():
111
  mood = gr.Radio(choices=list(mood_prompts.keys()), value="Professional", label="Select Mood")