emunsing commited on
Commit
244b377
·
1 Parent(s): f07250b

Fix hf space app config

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,14 +1,17 @@
1
  from eventbrite_summarizer import get_eventbrite_summary
2
  import gradio as gr
3
 
4
- top_level_prompt_stub = """You are a journalist writing a calendar of events, and need to create succinct, fun, and energizing summaries of events in 1-2 sentences. You will be given a description of an event you need to summarize; please respond with your brief, fun, and engaging summary."""
 
5
 
 
6
 
7
  prompt_textbox = gr.Textbox(value=top_level_prompt_stub)
8
  url_textbox = gr.Textbox(value='https://www.eventbrite.com/e/greenermind-summit-2023-tickets-576308392917',
9
  placeholder='full eventbrite url')
10
 
11
  demo = gr.Interface(fn=get_eventbrite_summary,
 
12
  inputs=[url_textbox, prompt_textbox],
13
  outputs=['text']
14
  )
 
1
  from eventbrite_summarizer import get_eventbrite_summary
2
  import gradio as gr
3
 
4
+ description = "Event Summarizer with custom prompting"
5
+ title = "Event Summarizer"
6
 
7
+ top_level_prompt_stub = """You are a journalist writing a calendar of events, and need to create succinct, fun, and energizing summaries of events in 1-2 sentences. You will be given a description of an event you need to summarize; please respond with your brief, fun, and engaging summary."""
8
 
9
  prompt_textbox = gr.Textbox(value=top_level_prompt_stub)
10
  url_textbox = gr.Textbox(value='https://www.eventbrite.com/e/greenermind-summit-2023-tickets-576308392917',
11
  placeholder='full eventbrite url')
12
 
13
  demo = gr.Interface(fn=get_eventbrite_summary,
14
+ description=description,
15
  inputs=[url_textbox, prompt_textbox],
16
  outputs=['text']
17
  )