tdnathmlenthusiast commited on
Commit
779d214
1 Parent(s): cde71df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -5,7 +5,6 @@ from gradio import Interface
5
  from pathlib import Path
6
  from fastai.text.all import *
7
  from datasets import load_dataset
8
- from debinterface.interfaces import interfaces
9
 
10
  adapters2 = interfaces()
11
 
@@ -30,7 +29,7 @@ def generate_summary(input_text):
30
  return summary_text
31
 
32
  # Create an interface for the model
33
- interfaces = gr.interfaces(
34
  fn=generate_summary, # The function to generate summaries
35
  inputs=gr.inputs.Textbox(), # Input field for text
36
  outputs=gr.outputs.Textbox(), # Output field for generated text
 
5
  from pathlib import Path
6
  from fastai.text.all import *
7
  from datasets import load_dataset
 
8
 
9
  adapters2 = interfaces()
10
 
 
29
  return summary_text
30
 
31
  # Create an interface for the model
32
+ interfaces = gr.Interface(
33
  fn=generate_summary, # The function to generate summaries
34
  inputs=gr.inputs.Textbox(), # Input field for text
35
  outputs=gr.outputs.Textbox(), # Output field for generated text