Arkm20 commited on
Commit
3d94f74
·
verified ·
1 Parent(s): 09f5fa1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -11,4 +11,8 @@ def fetch_html(url: str):
11
  response.raise_for_status()
12
  return {"html": response.text}
13
  except requests.RequestException as e:
14
- return {"error": str(e)}
 
 
 
 
 
11
  response.raise_for_status()
12
  return {"html": response.text}
13
  except requests.RequestException as e:
14
+ return {"error": str(e)}
15
+
16
+ if __name__ == "__main__":
17
+ import uvicorn
18
+ uvicorn.run(app, host="0.0.0.0", port=7860)