Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ scheduler = CommitScheduler(
|
|
68 |
repo_type="dataset",
|
69 |
folder_path=submit_file.parent,
|
70 |
path_in_repo="data",
|
71 |
-
every=
|
72 |
token=token
|
73 |
)
|
74 |
logger.info(f"Initialized CommitScheduler for repo: atlasia/atlaset_inference_ds")
|
@@ -262,7 +262,7 @@ if __name__ == "__main__":
|
|
262 |
prompt_input = gr.Textbox(
|
263 |
label="الدخل (Prompt): دخل النص بالدارجة",
|
264 |
placeholder="اكتب هنا...",
|
265 |
-
lines=4
|
266 |
)
|
267 |
|
268 |
with gr.Row():
|
@@ -283,7 +283,7 @@ if __name__ == "__main__":
|
|
283 |
repetition_penalty = gr.Slider(0.0, 100.0, value=1.2, label="Repetition Penalty (عقوبة التكرار)") # Reduced default
|
284 |
|
285 |
with gr.Column(scale=6):
|
286 |
-
output_text = gr.Textbox(label="النص المولد (Generated Text)", lines=10)
|
287 |
generation_info = gr.Markdown("")
|
288 |
|
289 |
with gr.Row():
|
@@ -291,7 +291,7 @@ if __name__ == "__main__":
|
|
291 |
thumbs_down = gr.Button("👎 سيء")
|
292 |
|
293 |
with gr.Accordion("تعليق (Feedback)", open=False, visible=False) as feedback_accordion:
|
294 |
-
feedback_text = gr.Textbox(label="لماذا لم يعجبك الناتج؟ (Why didn't you like the output?)", lines=2)
|
295 |
submit_feedback = gr.Button("إرسال التعليق (Submit Feedback)")
|
296 |
|
297 |
feedback_result = gr.Markdown("")
|
|
|
68 |
repo_type="dataset",
|
69 |
folder_path=submit_file.parent,
|
70 |
path_in_repo="data",
|
71 |
+
every=5,
|
72 |
token=token
|
73 |
)
|
74 |
logger.info(f"Initialized CommitScheduler for repo: atlasia/atlaset_inference_ds")
|
|
|
262 |
prompt_input = gr.Textbox(
|
263 |
label="الدخل (Prompt): دخل النص بالدارجة",
|
264 |
placeholder="اكتب هنا...",
|
265 |
+
lines=4, rtl=True
|
266 |
)
|
267 |
|
268 |
with gr.Row():
|
|
|
283 |
repetition_penalty = gr.Slider(0.0, 100.0, value=1.2, label="Repetition Penalty (عقوبة التكرار)") # Reduced default
|
284 |
|
285 |
with gr.Column(scale=6):
|
286 |
+
output_text = gr.Textbox(label="النص المولد (Generated Text)", lines=10, rtl=True)
|
287 |
generation_info = gr.Markdown("")
|
288 |
|
289 |
with gr.Row():
|
|
|
291 |
thumbs_down = gr.Button("👎 سيء")
|
292 |
|
293 |
with gr.Accordion("تعليق (Feedback)", open=False, visible=False) as feedback_accordion:
|
294 |
+
feedback_text = gr.Textbox(label="لماذا لم يعجبك الناتج؟ (Why didn't you like the output?)", lines=2, rtl=True)
|
295 |
submit_feedback = gr.Button("إرسال التعليق (Submit Feedback)")
|
296 |
|
297 |
feedback_result = gr.Markdown("")
|