Samarth991 commited on
Commit
3d37ad9
·
verified ·
1 Parent(s): b4d2def

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -10,17 +10,8 @@ import chatops
10
  logger = logging.getLogger(__name__)
11
 
12
  DEVICE = 'cpu'
13
- MAX_NEW_TOKENS = 4096
14
- DEFAULT_TEMPERATURE = 0.1
15
- DEFAULT_MAX_NEW_TOKENS = 2048
16
- MAX_INPUT_TOKEN_LENGTH = 4000
17
- DEFAULT_CHAR_LENGTH = 1000
18
-
19
- EXAMPLES = [,"https://www.youtube.com/watch?v=aircAruvnKk&ab_channel=3Blue1Brown",
20
- "https://www.youtube.com/watch?v=Ilg3gGewQ5U",
21
- "https://www.youtube.com/watch?v=WUvTyaaNkzM"
22
- ]
23
 
 
24
 
25
 
26
  def youtube_link_dataloader(video_link,max_video_length=1000):
@@ -64,7 +55,7 @@ iface = gr.Interface(
64
  gr.Textbox(label="Add API key", type="password"),
65
  gr.Dropdown(['mistralai/Mistral-7B-v0.1','llama3-8b-8192'],label='Large Language Model',info='LLM Service'),
66
  gr.Textbox(label='You tube link'),
67
- gr.Slider(1000,5000,label="Video link Length in seconds",info="Length of video in seconds")
68
  ],
69
  outputs="text",
70
  description ="Summarize your You tube link using Large Language Models",
 
10
  logger = logging.getLogger(__name__)
11
 
12
  DEVICE = 'cpu'
 
 
 
 
 
 
 
 
 
 
13
 
14
+ DEFAULT_CHAR_LENGTH = 1000
15
 
16
 
17
  def youtube_link_dataloader(video_link,max_video_length=1000):
 
55
  gr.Textbox(label="Add API key", type="password"),
56
  gr.Dropdown(['mistralai/Mistral-7B-v0.1','llama3-8b-8192'],label='Large Language Model',info='LLM Service'),
57
  gr.Textbox(label='You tube link'),
58
+ gr.Slider(DEFAULT_CHAR_LENGTH,5000,label="Video link Length in seconds",info="Length of video in seconds")
59
  ],
60
  outputs="text",
61
  description ="Summarize your You tube link using Large Language Models",