KingNish commited on
Commit
06597e0
1 Parent(s): fcdf742
Files changed (1) hide show
  1. app.py +14 -18
app.py CHANGED
@@ -393,10 +393,10 @@ FEATURES = datasets.Features(
393
 
394
  # Hyper-parameters for generation
395
  max_new_tokens = gr.Slider(
396
- minimum=1024,
397
- maximum=8192,
398
  value=4096,
399
- step=1,
400
  interactive=True,
401
  label="Maximum number of new tokens to generate",
402
  )
@@ -414,7 +414,7 @@ decoding_strategy = gr.Radio(
414
  "Greedy",
415
  "Top P Sampling",
416
  ],
417
- value="Greedy",
418
  label="Decoding strategy",
419
  interactive=True,
420
  info="Higher values is equivalent to sampling more low-probability tokens.",
@@ -517,28 +517,24 @@ with gr.Blocks() as voice:
517
  inputs=[input],
518
  outputs=[output], live=True)
519
 
520
- with gr.Blocks() as voice2:
521
- with gr.Row():
522
- input = gr.Audio(label="Voice Chat", sources="microphone", type="filepath", waveform_options=False)
523
- output = gr.Audio(label="OpenGPT 4o", type="filepath",
524
- interactive=False,
525
- autoplay=True,
526
- elem_classes="audio")
527
- gr.Interface(
528
- fn=respond,
529
- inputs=[input],
530
- outputs=[output], live=True)
531
-
532
  with gr.Blocks() as video:
533
  gr.Interface(
534
  fn=videochat,
535
  inputs=[gr.Image(type="pil",sources="webcam", label="Upload Image"), gr.Textbox(label="Prompt", value="what he is doing")],
536
  outputs=gr.Textbox(label="Answer")
537
  )
538
-
 
 
 
 
 
 
 
 
539
  with gr.Blocks(theme=theme, title="OpenGPT 4o DEMO") as demo:
540
  gr.Markdown("# OpenGPT 4o")
541
- gr.TabbedInterface([img, voice, video, voice2], ['💬 SuperChat','🗣️ Voice Chat','📸 Live Chat', '🗣️ Voice Chat 2'])
542
 
543
  demo.queue(max_size=200)
544
  demo.launch()
 
393
 
394
  # Hyper-parameters for generation
395
  max_new_tokens = gr.Slider(
396
+ minimum=2048,
397
+ maximum=16000,
398
  value=4096,
399
+ step=64,
400
  interactive=True,
401
  label="Maximum number of new tokens to generate",
402
  )
 
414
  "Greedy",
415
  "Top P Sampling",
416
  ],
417
+ value="Top P Sampling",
418
  label="Decoding strategy",
419
  interactive=True,
420
  info="Higher values is equivalent to sampling more low-probability tokens.",
 
517
  inputs=[input],
518
  outputs=[output], live=True)
519
 
 
 
 
 
 
 
 
 
 
 
 
 
520
  with gr.Blocks() as video:
521
  gr.Interface(
522
  fn=videochat,
523
  inputs=[gr.Image(type="pil",sources="webcam", label="Upload Image"), gr.Textbox(label="Prompt", value="what he is doing")],
524
  outputs=gr.Textbox(label="Answer")
525
  )
526
+
527
+ with gr.Blocks() as image:
528
+ gr.Markdown("""# Work In Progress
529
+ Features in Image engine
530
+ 1. A fully dedicated Work for Image Generation Only
531
+ 2. Sequential Image Generation
532
+ 3. Image Gen with various inputs Text and Image
533
+ 4. Gonna add different types of image generator according to use""")
534
+
535
  with gr.Blocks(theme=theme, title="OpenGPT 4o DEMO") as demo:
536
  gr.Markdown("# OpenGPT 4o")
537
+ gr.TabbedInterface([img, voice, video, image], ['💬 SuperChat','🗣️ Voice Chat','📸 Live Chat', '🖼 Image Engine'])
538
 
539
  demo.queue(max_size=200)
540
  demo.launch()