Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,13 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
def greet(name):
|
| 4 |
-
return "Hello " + name + "!!"
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
iface.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import metadata_parser
|
| 3 |
+
import pandas as pd
|
| 4 |
|
|
|
|
|
|
|
| 5 |
|
| 6 |
+
link = "https://www.oggusto.com/gastronomi/turkiye/destek-olabileceginiz-yerel-ureticiler"
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def parse(link):
|
| 10 |
+
page = metadata_parser.MetadataParser(url=link)
|
| 11 |
+
return page.metadata
|
| 12 |
+
iface = gr.Interface(fn=parse, inputs="text", outputs="text")
|
| 13 |
iface.launch()
|