Add Some Changes in AI21-sd-tutorial
The implementation of main functions for generating ideas and images should come before the buttons. Python execute the code from top to bottom therefore it shows error for defining main functions.
We define the function in below but due on_click command it enables to get the main funtion.
In this commit, I reorder the Functions. I add main functions before the layout of app.
Also, for every app which made through python needs a requirement text file for executing the code so i also add terminal command by which you can easily add requirement file in your app folder.
Now it's stable diffusion part is working very well i checked it. but ai21 studio needs some more code. I think file path is missing there.
Add Some Changes in AI21-sd-tutorial The implementation of main functions for generating ideas and images should come before the buttons. Python execute the code from top to bottom therefore it shows error for defining main functions. We define the function in below but due on_click command it enables to get the main funtion. In this commit, I reorder the Functions. I add main functions before the layout of app.
Also, for every app which made through python needs a requirement text file for executing the code so i also add terminal command by which you can easily add requirement file in your app folder.
Now it's stable diffusion part is working very well i checked it. but ai21 studio needs some more code. I think file path is missing there.