lachine commited on
Commit
e7186cd
·
1 Parent(s): bfd79b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -28
app.py CHANGED
@@ -39,33 +39,5 @@ interface = gr.Interface(fn=generate_text,
39
  # Set the page layout
40
  interface.layout = 'vertical'
41
 
42
- # Add API documentation
43
- interface.api.docs = {
44
- 'generate_text': {
45
- 'description': 'Generates text using the GPT-2 model.',
46
- 'input': [
47
- {
48
- 'name': 'text',
49
- 'type': 'str',
50
- 'description': 'Input text to generate from.'
51
- },
52
- {
53
- 'name': 'max_length',
54
- 'type': 'int',
55
- 'description': 'Maximum length of generated text.'
56
- },
57
- {
58
- 'name': 'num_return_sequences',
59
- 'type': 'int',
60
- 'description': 'Number of texts to generate.'
61
- }
62
- ],
63
- 'output': {
64
- 'type': 'str',
65
- 'description': r'The text(s). (seperated by "\nend of text\n"'
66
- }
67
- }
68
- }
69
-
70
  # Run the interface
71
  interface.launch(share=True)
 
39
  # Set the page layout
40
  interface.layout = 'vertical'
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  # Run the interface
43
  interface.launch(share=True)