Sheepbon commited on
Commit
31f3836
·
verified ·
1 Parent(s): e2a2ebe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -17,11 +17,6 @@ with open("recipes.txt", "r", encoding="utf-8") as file:
17
  # Print the text below
18
  print(recipes_text)
19
 
20
- def greet(name):
21
- return "Hello, " + name +"!"
22
-
23
- greeting = gr.Interface(fn = greet, inputs = ["text"], outputs = [gr.Textbox(label = "greeting")])
24
-
25
  #Step 3
26
  def preprocess_text(text):
27
  # Strip extra whitespace from the beginning and the end of the text
@@ -154,6 +149,17 @@ def vote(data: gr.LikeData):
154
  else:
155
  print("You downvoted this response: " + data.value["value"])
156
 
 
 
 
 
 
 
 
 
 
 
 
157
  title = """# 🐑 NutriAssist 🌱"""
158
 
159
  with gr.Blocks() as demo:
 
17
  # Print the text below
18
  print(recipes_text)
19
 
 
 
 
 
 
20
  #Step 3
21
  def preprocess_text(text):
22
  # Strip extra whitespace from the beginning and the end of the text
 
149
  else:
150
  print("You downvoted this response: " + data.value["value"])
151
 
152
+ chat_theme = gr.themes.Monochrome(
153
+ primary_hue = "pink",
154
+ secondary_hue = "rose",
155
+ neutral_hue = "rose",
156
+ spacing_size = "lg",
157
+ radius_size = "lg"
158
+ ).set(
159
+ input_background_fill = "*neutral_100",
160
+ input_border_color_fill = "*primary_200",
161
+ )
162
+
163
  title = """# 🐑 NutriAssist 🌱"""
164
 
165
  with gr.Blocks() as demo: