EmadSalem commited on
Commit
978d20e
1 Parent(s): cad1bf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -101
app.py CHANGED
@@ -94,12 +94,7 @@ css = """
94
 
95
  block = gr.Blocks(css=css)
96
 
97
- examples = [
98
- [
99
- '戴着眼镜的猫',
100
- '油画(Oil painting)'
101
- ]
102
- ]
103
 
104
  with block:
105
  gr.HTML(
@@ -143,96 +138,7 @@ description="ERNIE-ViLG model, which supports text-to-image task."
143
 
144
 
145
 
146
- examples = [
147
- [
148
- '戴着眼镜的猫',
149
- '油画(Oil painting)'
150
- ],
151
- [
152
- 'A cat with glasses',
153
- '油画(Oil painting)'
154
- ],
155
- [
156
- '眼鏡をかけた猫',
157
- '油画(Oil painting)'
158
- ],
159
- [
160
- '안경을 쓴 고양이',
161
- '油画(Oil painting)'
162
- ],
163
- [
164
- '日落时的城市天际线,史前遗迹风格',
165
- '油画(Oil painting)'
166
- ],
167
- [
168
- '一只猫坐在椅子上,戴着一副墨镜, low poly 风格',
169
- '卡通(Cartoon)'
170
- ],
171
- [
172
- 'A cat sitting on a chair, wearing a pair of sunglasses, low poly style',
173
- '油画(Oil painting)'
174
- ],
175
- [
176
- '猫が椅子に座ってサングラスをかけている、low polyスタイル',
177
- '油画(Oil painting)'
178
- ],
179
- [
180
- '고양이 한 마리가 의자에 앉아 선글라스를 끼고 low poly 스타일을 하고 있다',
181
- '油画(Oil painting)'
182
- ],
183
- [
184
- '一只猫坐在椅子上,戴着一副墨镜,秋天风格',
185
- '探索无限(Explore infinity)'
186
- ],
187
- [
188
- '蒙娜丽莎,赛博朋克,宝丽来,33毫米,蒸汽波艺术',
189
- '探索无限(Explore infinity)'
190
- ],
191
- [
192
- '一只猫坐在椅子上,戴着一副墨镜,海盗风格',
193
- '探索无限(Explore infinity)'
194
- ],
195
- [
196
- '一条由闪电制成的令人敬畏的龙,概念艺术',
197
- '探索无限(Explore infinity)'
198
- ],
199
- [
200
- 'An awesome dragon made of lightning, conceptual art',
201
- '油画(Oil painting)'
202
- ],
203
- [
204
- '稲妻で作られた畏敬の念を抱かせる竜、コンセプトアート',
205
- '油画(Oil painting)'
206
- ],
207
- [
208
- '번개로 만든 경외스러운 용, 개념 예술',
209
- '油画(Oil painting)'
210
- ],
211
- [
212
- '梵高猫头鹰,蒸汽波艺术',
213
- '探索无限(Explore infinity)'
214
- ],
215
- [
216
- '萨尔瓦多·达利描绘古代文明的超现实主义梦幻油画,写实风格',
217
- '探索无限(Explore infinity)'
218
- ],
219
- [
220
- '夕阳日落时,阳光落在云层上,海面波涛汹涌,风景,胶片感',
221
- '探索无限(Explore infinity)'
222
- ],
223
- [
224
- 'Sunset, the sun falls on the clouds, the sea is rough, the scenery is filmy',
225
- '油画(Oil painting)'
226
- ],
227
- [
228
- '夕日が沈むと、雲の上に太陽の光が落ち、海面は波が荒く、風景、フィルム感',
229
- '油画(Oil painting)'
230
- ],
231
- [
232
- '석양이 질 때 햇빛이 구름 위에 떨어지고, 해수면의 파도가 용솟음치며, 풍경, 필름감',
233
- '油画(Oil painting)'
234
- ],
235
- ]
236
 
237
  with block:
238
  gr.HTML(
@@ -343,13 +249,13 @@ with gr.Blocks() as blocks:
343
  with gr.Column():# variant="panel"
344
 
345
  audio_file = gr.inputs.Audio(source="microphone", type="filepath")
346
- custom_token = gr.Textbox(label='If it fails, use your own session token', placeholder="your own session token")
347
  with gr.Row():# mobile_collapse=False
348
- submit = gr.Button("Submit", variant="primary")
349
  with gr.Column():
350
- text1 = gr.Textbox(label="Speech to Text")
351
- text2 = gr.Textbox(label="chatGPT response")
352
- audio = gr.Audio(label="Output", interactive=False)
353
  #gr.Markdown(info)
354
  #gr.Markdown("<center>"
355
  # +f'<img src={badge} alt="visitors badge"/>'
 
94
 
95
  block = gr.Blocks(css=css)
96
 
97
+
 
 
 
 
 
98
 
99
  with block:
100
  gr.HTML(
 
138
 
139
 
140
 
141
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
 
143
  with block:
144
  gr.HTML(
 
249
  with gr.Column():# variant="panel"
250
 
251
  audio_file = gr.inputs.Audio(source="microphone", type="filepath")
252
+ custom_token = gr.Textbox(label='إذا حدث فشل خلال الاتصال ، قم باستخدام رمز الجلسة "session" الخاص بك', placeholder="ادخل رمز الجلسة الخاص بك هنا session code")
253
  with gr.Row():# mobile_collapse=False
254
+ submit = gr.Button("اتمام", variant="primary")
255
  with gr.Column():
256
+ text1 = gr.Textbox(label="صوت لنص")
257
+ text2 = gr.Textbox(label="chatGPT اجابة الـ")
258
+ audio = gr.Audio(label="النتيجة", interactive=False)
259
  #gr.Markdown(info)
260
  #gr.Markdown("<center>"
261
  # +f'<img src={badge} alt="visitors badge"/>'