Spaces:
Runtime error
Runtime error
updated txt.files
Browse files
app.py
CHANGED
|
@@ -10,8 +10,8 @@ import random
|
|
| 10 |
client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
|
| 11 |
|
| 12 |
#adding text file
|
| 13 |
-
with open("be_a_better_you.txt", "r", encoding="utf-8") as
|
| 14 |
-
|
| 15 |
|
| 16 |
#cleaning up the text
|
| 17 |
cleaned_text = wellness_text.strip()
|
|
@@ -80,7 +80,7 @@ theme = gr.themes.Soft(
|
|
| 80 |
neutral_hue="pink",
|
| 81 |
)
|
| 82 |
|
| 83 |
-
with gr.Blocks(
|
| 84 |
chatbot = gr.ChatInterface(
|
| 85 |
fn=respond,
|
| 86 |
type='messages',
|
|
@@ -96,3 +96,9 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 96 |
|
| 97 |
|
| 98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
|
| 11 |
|
| 12 |
#adding text file
|
| 13 |
+
with open("be_a_better_you.txt", "r", encoding="utf-8") as file1, open("journal_prompts.txt", "r", encoding="utf-8") as file2:
|
| 14 |
+
wellness_text = file1.read() + "\n" + file2.read()
|
| 15 |
|
| 16 |
#cleaning up the text
|
| 17 |
cleaned_text = wellness_text.strip()
|
|
|
|
| 80 |
neutral_hue="pink",
|
| 81 |
)
|
| 82 |
|
| 83 |
+
with gr.Blocks(css=custom_css) as demo:
|
| 84 |
chatbot = gr.ChatInterface(
|
| 85 |
fn=respond,
|
| 86 |
type='messages',
|
|
|
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|