Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,15 +7,15 @@ import requests
|
|
| 7 |
def greet(payload):
|
| 8 |
response = requests.post("https://api-inference.huggingface.co/models/PoseyATX/Fenrir_Alpha", headers={"Authorization": "Bearer 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"}, json=payload)
|
| 9 |
return response.json()
|
| 10 |
-
super().load(name=PoseyATX/
|
| 11 |
output = greet({
|
| 12 |
"inputs": "https://capitol.texas.gov/tlodocs/88R/billtext/html/HB00025I.htm",
|
| 13 |
})
|
| 14 |
|
| 15 |
with gr.Blocks() as demo:
|
| 16 |
-
name = gr.Textbox(label="
|
| 17 |
-
output = gr.Textbox(label="
|
| 18 |
-
greet_btn = gr.Button("
|
| 19 |
greet_btn.click(fn=greet, inputs=name, outputs=output)
|
| 20 |
|
| 21 |
demo.launch("share=True")
|
|
|
|
| 7 |
def greet(payload):
|
| 8 |
response = requests.post("https://api-inference.huggingface.co/models/PoseyATX/Fenrir_Alpha", headers={"Authorization": "Bearer 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"}, json=payload)
|
| 9 |
return response.json()
|
| 10 |
+
super().load(name=PoseyATX/Fenrir_Alpha, src=huggingface, api_key=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, alias=FoxHunter, **kwargs)
|
| 11 |
output = greet({
|
| 12 |
"inputs": "https://capitol.texas.gov/tlodocs/88R/billtext/html/HB00025I.htm",
|
| 13 |
})
|
| 14 |
|
| 15 |
with gr.Blocks() as demo:
|
| 16 |
+
name = gr.Textbox(label="Paste Your Bill Text In Here:")
|
| 17 |
+
output = gr.Textbox(label="Analysis")
|
| 18 |
+
greet_btn = gr.Button("ANALYZE")
|
| 19 |
greet_btn.click(fn=greet, inputs=name, outputs=output)
|
| 20 |
|
| 21 |
demo.launch("share=True")
|