Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import os
|
|
| 5 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
| 6 |
css_file = os.path.join(current_dir, "style.css")
|
| 7 |
|
| 8 |
-
initial_prompt = "
|
| 9 |
|
| 10 |
def parse_text(text):
|
| 11 |
lines = text.split("\n")
|
|
@@ -111,9 +111,9 @@ with block as demo:
|
|
| 111 |
|
| 112 |
with gr.Row():
|
| 113 |
with gr.Column(scale=12):
|
| 114 |
-
txt = gr.Textbox(show_label=False, placeholder="
|
| 115 |
with gr.Column(min_width=50, scale=1):
|
| 116 |
-
submitBtn = gr.Button("🚀
|
| 117 |
css={
|
| 118 |
"background-color": "#A238FF",
|
| 119 |
"border-radius": "8px",
|
|
@@ -126,7 +126,7 @@ with block as demo:
|
|
| 126 |
)
|
| 127 |
|
| 128 |
with gr.Row():
|
| 129 |
-
emptyBtn = gr.Button("🧹
|
| 130 |
css={
|
| 131 |
"background-color": "#E0E0E0",
|
| 132 |
"border-radius": "8px",
|
|
@@ -137,7 +137,7 @@ with block as demo:
|
|
| 137 |
"cursor": "pointer",
|
| 138 |
}
|
| 139 |
)
|
| 140 |
-
retryBtn = gr.Button("🔄
|
| 141 |
css={
|
| 142 |
"background-color": "#E0E0E0",
|
| 143 |
"border-radius": "8px",
|
|
@@ -148,7 +148,7 @@ with block as demo:
|
|
| 148 |
"cursor": "pointer",
|
| 149 |
}
|
| 150 |
)
|
| 151 |
-
delLastBtn = gr.Button("🗑️
|
| 152 |
css={
|
| 153 |
"background-color": "#E0E0E0",
|
| 154 |
"border-radius": "8px",
|
|
|
|
| 5 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
| 6 |
css_file = os.path.join(current_dir, "style.css")
|
| 7 |
|
| 8 |
+
initial_prompt = "Ești un asistent util."
|
| 9 |
|
| 10 |
def parse_text(text):
|
| 11 |
lines = text.split("\n")
|
|
|
|
| 111 |
|
| 112 |
with gr.Row():
|
| 113 |
with gr.Column(scale=12):
|
| 114 |
+
txt = gr.Textbox(show_label=False, placeholder="Vă rugăm să introduceți oricare dintre întrebările dvs. aici.").style(container=False)
|
| 115 |
with gr.Column(min_width=50, scale=1):
|
| 116 |
+
submitBtn = gr.Button("🚀 Trimite").style(
|
| 117 |
css={
|
| 118 |
"background-color": "#A238FF",
|
| 119 |
"border-radius": "8px",
|
|
|
|
| 126 |
)
|
| 127 |
|
| 128 |
with gr.Row():
|
| 129 |
+
emptyBtn = gr.Button("🧹 Conversație nouă").style(
|
| 130 |
css={
|
| 131 |
"background-color": "#E0E0E0",
|
| 132 |
"border-radius": "8px",
|
|
|
|
| 137 |
"cursor": "pointer",
|
| 138 |
}
|
| 139 |
)
|
| 140 |
+
retryBtn = gr.Button("🔄 Retrimiteți").style(
|
| 141 |
css={
|
| 142 |
"background-color": "#E0E0E0",
|
| 143 |
"border-radius": "8px",
|
|
|
|
| 148 |
"cursor": "pointer",
|
| 149 |
}
|
| 150 |
)
|
| 151 |
+
delLastBtn = gr.Button("🗑️ Sterge conversația").style(
|
| 152 |
css={
|
| 153 |
"background-color": "#E0E0E0",
|
| 154 |
"border-radius": "8px",
|