Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -45,10 +45,6 @@ def predict(request: gr.Request, *args, progress=gr.Progress(track_tqdm=True)):
45
  else:
46
  status = None
47
 
48
- if status == "Yes" :
49
- raise gr.Error("Do not ask for such things.")
50
- else:
51
-
52
  headers = {'Content-Type': 'application/json'}
53
 
54
  payload = {"input": {}}
@@ -112,7 +108,6 @@ with gr.Blocks(css=css) as app:
112
  prompt = gr.Textbox(
113
  label="Prompt", info='''Describe the subject. Include clothes and hairstyle for more consistency.''',
114
  value="a person, darkblue suit, black tie, white pocket",
115
- interactive=False
116
  )
117
 
118
  subject = gr.Image(
 
45
  else:
46
  status = None
47
 
 
 
 
 
48
  headers = {'Content-Type': 'application/json'}
49
 
50
  payload = {"input": {}}
 
108
  prompt = gr.Textbox(
109
  label="Prompt", info='''Describe the subject. Include clothes and hairstyle for more consistency.''',
110
  value="a person, darkblue suit, black tie, white pocket",
 
111
  )
112
 
113
  subject = gr.Image(