Spaces:
Runtime error
Runtime error
Michael S. Trusov commited on
Commit ·
121b962
1
Parent(s): 807f438
August 29 commit to Hugging Face 5:10pm
Browse files- app.py +4 -2
- qa_data.txt +1 -1
app.py
CHANGED
|
@@ -161,7 +161,7 @@ with gr.Blocks(theme = theme) as demo:
|
|
| 161 |
bot_message = output_text
|
| 162 |
|
| 163 |
if text == "debug":
|
| 164 |
-
bot_message = "[DEBUG (ver. 8/29/2024 5:
|
| 165 |
|
| 166 |
|
| 167 |
# initialize new entry
|
|
@@ -169,7 +169,9 @@ with gr.Blocks(theme = theme) as demo:
|
|
| 169 |
|
| 170 |
# output text letter-by-letter
|
| 171 |
for character in bot_message:
|
| 172 |
-
|
|
|
|
|
|
|
| 173 |
|
| 174 |
# Delay between words
|
| 175 |
if character == " ":
|
|
|
|
| 161 |
bot_message = output_text
|
| 162 |
|
| 163 |
if text == "debug":
|
| 164 |
+
bot_message = "[DEBUG (ver. 8/29/2024 5:10pm) params: " + url_params + "\nSentences Delay=" + str(DelayBetweenSentences) + " sec. Words Delay=" + str(DelayBetweenWords) + " sec. Letters Delay=" + str(DelayBetweenLetters) + " sec.) \nKeys:\n" + "\n".join(keywords) + "]"
|
| 165 |
|
| 166 |
|
| 167 |
# initialize new entry
|
|
|
|
| 169 |
|
| 170 |
# output text letter-by-letter
|
| 171 |
for character in bot_message:
|
| 172 |
+
|
| 173 |
+
if character != "=":
|
| 174 |
+
history[-1][1] += character
|
| 175 |
|
| 176 |
# Delay between words
|
| 177 |
if character == " ":
|
qa_data.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
{
|
| 2 |
-
"Tucson": "Here are the top 5 Mexican restaurants in Tucson, AZ, according to various sources:\n\n1. **Guadalajara Original Grill** - Known for its tableside salsa and guacamole preparation, this restaurant offers an authentic dining experience with live music and dishes like chicken fajitas and flavorful Molcajetes.\n - *Rating*: 4.5/5\n - *Price Range*: `$$ - $$$$`\n2. **Mariscos Chihuahua** - A seafood-focused menu featuring dishes such as shrimp ceviche, smoked marlin fish tacos, and fish fillet in creamy green sauce in a simple setting.\n - *Rating*: 4.5/5\n - *Price Range*: $$ - $$$$\n3. **El Guero Canelo** - Authentic Mexican cuisine venue known for Sonoran hot dogs and Chucho dog, offering generous portions and a condiment bar for personalization.\n - *Rating*: 4.5/5\n - *Price Range*: $$ - $$$$\n4. **Mi Nidito Restaurant, Inc** - Enthusiasts of Mexican cuisine can explore dishes like Sonoran style flat enchiladas, carne seca, and the notable \"Bill Clinton plate\" in an energetic atmosphere with combo plates.\n - *Rating*: 4.5/5\n - *Price Range*: $$\n5. **Blanco Cocina + Cantina** - An urban chic eatery providing Mexican-inspired dishes, with a selection of margaritas and a notable tequila bar. Menu highlights include machaca beef short ribs enchiladas and a signature chimichanga.\n - *Rating*: 4.0/5\n - *Price Range*: $$ - $$$$\
|
| 3 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"Tucson": "Here are the top 5 Mexican restaurants in Tucson, AZ, according to various sources:=\n\n1. **Guadalajara Original Grill** - Known for its tableside salsa and guacamole preparation, this restaurant offers an authentic dining experience with live music and dishes like chicken fajitas and flavorful Molcajetes.\n - *Rating*: 4.5/5\n - *Price Range*: `$$ - $$$$`=\n2. **Mariscos Chihuahua** - A seafood-focused menu featuring dishes such as shrimp ceviche, smoked marlin fish tacos, and fish fillet in creamy green sauce in a simple setting.\n - *Rating*: 4.5/5\n - *Price Range*: $$ - $$$$=\n3. **El Guero Canelo** - Authentic Mexican cuisine venue known for Sonoran hot dogs and Chucho dog, offering generous portions and a condiment bar for personalization.\n - *Rating*: 4.5/5\n - *Price Range*: $$ - $$$$=\n4. **Mi Nidito Restaurant, Inc** - Enthusiasts of Mexican cuisine can explore dishes like Sonoran style flat enchiladas, carne seca, and the notable \"Bill Clinton plate\" in an energetic atmosphere with combo plates.\n - *Rating*: 4.5/5\n - *Price Range*: $$=\n5. **Blanco Cocina + Cantina** - An urban chic eatery providing Mexican-inspired dishes, with a selection of margaritas and a notable tequila bar. Menu highlights include machaca beef short ribs enchiladas and a signature chimichanga.\n - *Rating*: 4.0/5\n - *Price Range*: $$ - $$$$=\nThat’s our top 5... Enjoy your culinary adventure!"
|
| 3 |
}
|