Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,14 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
from sentence_transformers import SentenceTransformer
|
| 4 |
import torch
|
|
@@ -69,15 +79,6 @@ def respond(message,history):
|
|
| 69 |
yield response
|
| 70 |
|
| 71 |
|
| 72 |
-
|
| 73 |
-
theme = gr.themes.Soft(
|
| 74 |
-
primary_hue="pink",
|
| 75 |
-
secondary_hue="pink",
|
| 76 |
-
neutral_hue="fuchsia",
|
| 77 |
-
).set(
|
| 78 |
-
link_text_color='*secondary_700'
|
| 79 |
-
)
|
| 80 |
-
|
| 81 |
#theme = gr.themes.Ocean(
|
| 82 |
# primary_hue="pink",
|
| 83 |
# secondary_hue="pink",
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
|
| 3 |
+
theme = gr.themes.Soft(
|
| 4 |
+
primary_hue="pink",
|
| 5 |
+
secondary_hue="pink",
|
| 6 |
+
neutral_hue="fuchsia",
|
| 7 |
+
).set(
|
| 8 |
+
link_text_color='*secondary_700'
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
|
| 12 |
from huggingface_hub import InferenceClient
|
| 13 |
from sentence_transformers import SentenceTransformer
|
| 14 |
import torch
|
|
|
|
| 79 |
yield response
|
| 80 |
|
| 81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
#theme = gr.themes.Ocean(
|
| 83 |
# primary_hue="pink",
|
| 84 |
# secondary_hue="pink",
|