Spaces:
Running
Running
shohabbosdev
commited on
Commit
•
ce8327f
1
Parent(s):
d8843e2
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def tarjim(text, choice):
|
|
11 |
except Exception as e:
|
12 |
return gr.Error("Xatolik nomi: %s" % e)
|
13 |
|
14 |
-
with gr.Blocks() as demo:
|
15 |
gr.Markdown(
|
16 |
"""
|
17 |
# Tezkor tarjima!
|
@@ -29,7 +29,6 @@ with gr.Blocks() as demo:
|
|
29 |
inp = gr.Textbox(label='kirish qismi', placeholder="Tarjima mantnini kiriting..." ,autofocus=True)
|
30 |
with gr.Column():
|
31 |
out = gr.Textbox(label='Natija', show_copy_button=True)
|
32 |
-
theme=gr.themes.Base()
|
33 |
inp.change(tarjim, [inp, tanlash], out)
|
34 |
|
35 |
if __name__ == "__main__":
|
|
|
11 |
except Exception as e:
|
12 |
return gr.Error("Xatolik nomi: %s" % e)
|
13 |
|
14 |
+
with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as demo:
|
15 |
gr.Markdown(
|
16 |
"""
|
17 |
# Tezkor tarjima!
|
|
|
29 |
inp = gr.Textbox(label='kirish qismi', placeholder="Tarjima mantnini kiriting..." ,autofocus=True)
|
30 |
with gr.Column():
|
31 |
out = gr.Textbox(label='Natija', show_copy_button=True)
|
|
|
32 |
inp.change(tarjim, [inp, tanlash], out)
|
33 |
|
34 |
if __name__ == "__main__":
|