Spaces:
Runtime error
Runtime error
updated app
Browse files
app.py
CHANGED
@@ -28,13 +28,15 @@ def launch(input):
|
|
28 |
out = pipe(input)
|
29 |
context_str = out[0]['generated_text']
|
30 |
translate_str = translate(context_str, 'en', 'sq')
|
|
|
31 |
return translate_str
|
32 |
|
|
|
|
|
33 |
iface = gr.Interface(launch,
|
34 |
inputs=gr.Image(type='pil'),
|
35 |
outputs="text")
|
36 |
|
37 |
-
iface.launch(share=True)
|
38 |
# iface.launch(share=True,
|
39 |
# server_port=int(os.environ['PORT1']))
|
40 |
|
|
|
28 |
out = pipe(input)
|
29 |
context_str = out[0]['generated_text']
|
30 |
translate_str = translate(context_str, 'en', 'sq')
|
31 |
+
|
32 |
return translate_str
|
33 |
|
34 |
+
iface.launch(share=True)
|
35 |
+
|
36 |
iface = gr.Interface(launch,
|
37 |
inputs=gr.Image(type='pil'),
|
38 |
outputs="text")
|
39 |
|
|
|
40 |
# iface.launch(share=True,
|
41 |
# server_port=int(os.environ['PORT1']))
|
42 |
|