Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from bs4 import BeautifulSoup
|
3 |
+
import requests
|
4 |
+
import re
|
5 |
+
import pandas as pd
|
6 |
+
def sketch_recognition(text):
|
7 |
+
url = 'http://www.imdb.com/chart/top'
|
8 |
+
response = requests.get(url)
|
9 |
+
soup = BeautifulSoup(response.text, "html.parser")
|
10 |
+
return response
|
11 |
+
|
12 |
+
gr.Interface(fn=sketch_recognition, inputs="text", outputs="text").launch()
|