adowu commited on
Commit
6fb9093
1 Parent(s): abf04cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -1
app.py CHANGED
@@ -28,7 +28,6 @@ def github_tool(
28
  ):
29
  """Narzędzie do zarządzania repozytoriami GitHub."""
30
  user = g.get_user()
31
-
32
  try:
33
  if action == "import_repository":
34
  if not all([owner, repo_name, vcs_url]):
@@ -269,5 +268,28 @@ with gr.Blocks() as demo:
269
  run_button = gr.Button("Wykonaj")
270
  output = gr.Textbox(label="Wynik")
271
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
 
273
  demo.launch()
 
28
  ):
29
  """Narzędzie do zarządzania repozytoriami GitHub."""
30
  user = g.get_user()
 
31
  try:
32
  if action == "import_repository":
33
  if not all([owner, repo_name, vcs_url]):
 
268
  run_button = gr.Button("Wykonaj")
269
  output = gr.Textbox(label="Wynik")
270
 
271
+ run_button.click(
272
+ github_tool,
273
+ inputs=[
274
+ action,
275
+ repo_name,
276
+ branch,
277
+ path,
278
+ content,
279
+ message,
280
+ owner,
281
+ vcs_url,
282
+ title,
283
+ body,
284
+ base,
285
+ head,
286
+ issue_number,
287
+ labels,
288
+ tag,
289
+ release_name, # Użycie zmienionej nazwy
290
+ ],
291
+ outputs=output,
292
+ api_name="github_tool"
293
+ )
294
 
295
  demo.launch()