PoseyATX commited on
Commit
99bed5f
·
1 Parent(s): 0936d33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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/FoxHunter, 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="Dump Your Bill Text In Here:")
17
- output = gr.Textbox(label="Summary")
18
- greet_btn = gr.Button("SUMMARIZE")
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")