Spaces:
Build error
Build error
Upload app.py
Browse filesinitial commit
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 |
+
|