Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- app.py +12 -0
- requirements.txt +1 -0
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```python
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
def add_numbers(num1, num2):
|
| 5 |
+
result = num1 + num2
|
| 6 |
+
return result
|
| 7 |
+
|
| 8 |
+
inputs = [gr.inputs.Number(label="Number 1"), gr.inputs.Number(label="Number 2")]
|
| 9 |
+
output = gr.outputs.Text(label="Result")
|
| 10 |
+
|
| 11 |
+
gr.Interface(fn=add_numbers, inputs=inputs, outputs=output, title="Addition of Two Numbers").launch()
|
| 12 |
+
```
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
gradio
|