Patt commited on
Commit
ec84d58
·
1 Parent(s): b6ddedb

Upload app.py

Browse files

initial commit

Files changed (1) hide show
  1. app.py +23 -0
app.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ """Test deploying model on huggingface space.ipynb
3
+
4
+ Automatically generated by Colaboratory.
5
+
6
+ Original file is located at
7
+ https://colab.research.google.com/drive/1VRB3YKw0bl47Lp_CuxXwyCsU9JGXq3sY
8
+ """
9
+
10
+
11
+ import gradio as gr
12
+
13
+ description = "Arabic-English translation machine"
14
+ title = "Translate"
15
+
16
+
17
+ interface = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-en-ar",
18
+ description=description
19
+
20
+ )
21
+
22
+ interface.launch()
23
+